body {
    background-color: #000;
    color: #fff;

}

select {
    height: 20px;
    background-color: #212529;
    border: 0;
    position: relative;
    top: 9px;
    color: white;
}


#welcomeModal .modal-content {
    background-color: #f8f9fa;
    color: #333;
    border-radius: 8px;
}

#welcomeModal .modal-header {
    border-bottom: 1px solid #ddd;
}

#welcomeModal .modal-footer {
    border-top: 1px solid #ddd;
}


.navbar,
.footer {
    background-color: #22262A;
}

#logoutModal .modal-content {
    background-color: white;
    color: black;
    border-radius: 8px;
}

#logoutModal .modal-header {
    border-bottom: 1px solid #000000;
}

#logoutModal .modal-footer {
    border-top: 1px solid #ddd;
}

#logoutModal .btn-close {
    color: white;
}

#logoutModal .btn-close:hover {
    color: #000000;

}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #cf1a2c;
    border-radius: 90%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
    position: fixed;
    left: 40%;
    top: 50%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


@media (min-width: 900px) {
    .live {
        height: 700px;
        width: 100%;
        margin-bottom: 50px;
        padding: 0px 100px 0 100px;


    }

    .embed-responsive-item {


        height: 700px;
        width: 100%;
        border: #f3f3f3 solid 1px;
    }
}
.heart-button {
    color: white; /* Initial color */
    border-color: white; /* Match border with initial color */
  }
  
  .heart-button.btn-danger {
    color: red; /* Change color to red */
    border-color: red;
  }
  

/* Styles for the suggestion container */
#suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

/* Styles for each suggestion item */
.suggestion-item {
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}


.suggestion-item:hover {
    background-color: #f0f0f0;
}

.suggestion-item:nth-child(odd) {
    background-color: #f9f9f9;
}

.suggestion-item:nth-child(even) {
    background-color: #ffffff;
}


#searchInput {
    position: relative;
    z-index: 1010;
    /* Ensure input stays above suggestions */
}


.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {

    padding: 20px;
    border: 1px solid white;
    border-radius: 8px;
    height: 200px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-buttons {
    margin-top: 15px;
}

.popup-buttons .btn {
    margin: 0 10px;
}


.top-fixed {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    font-family: sans-serif;
    color: #cf1a2c;
    font-style: oblique;
}

/* Profile Panel */
.profile-panel {
    width: 250px;
    height: 100%;
    position: fixed;
    top: 0;
    right: -250px;
    background-color: #343a40;
    color: white;
    transition: right 0.3s ease;
    z-index: 1050;
}

.profile-panel h4 {
    color: #ffc107;
}

.control-prev-icon {
    position: absolute;

}
.carousel-control-next{
    position: relative;
    left: 1197px;
}

#wishlistBtn {
    margin-bottom: 10px;
}
.heart-button{
    position: absolute;
    top: 0;
    right: 0;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

/* Show panel and overlay */
.show-panel {
    right: 0;
}

.show-overlay {
    display: block;
}


.carousel-caption h2,
.carousel-caption p {
    color: #fff;

}

.card {
    background-color: #181818;
}

.card-title-name {
    font-size: small;
}

.card-title,
.card-text {
    color: #fff;


}

#actors {
    margin-left: 60px;
}

.actors {
    display: flex;
    flex-wrap: wrap;
    margin-left: 50px;
}

.actorbox {
    margin: 15px;
    background-color: #181818;
    height: 457px;
    width: 300px;
    border-radius: 10px;

}

.actorbox h2 {
    color: #fff;
    font-size: medium;
    text-align: center;
}

.actorbox button {
    margin-left: 75px;

    height: 40px;
    width: 150px;
}

.actorbox img {

    width: 300px;
    height: 370px;
    padding: 10px;
    padding-bottom: 10px;
    border-radius: 17px;
    transition: 0.3s;

}

.actorbox img:hover {
    transform: scale(1.1);
}


.btn-primary {
    background-color: #BB2D3B;
    border-color: rgb(232, 39, 9);
    transition: 0.3s;
    text-align: center;
}

.btn-primary:hover {
    background-color: #FBB20B;
    ;
    border-color: #895442;
    transform: scale(1.1);
}

.search-bar {
    max-width: 300px;
}

.carousel-item img {
    width: 100%;
    height: 660px;
}

.card img {
    height: 430px;
}

main {
    margin-left: 30px
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(100%);
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.col-md-3-image {
    margin-bottom: 200px;
    height: 400px;
    width: 330px;
}

.carousel-control-prev {
height: 150px;
    position: absolute;
    left: -80px;
   top: 40%;
}

.carousel-control-next {
    height: 150px;
    position: absolute;
    top: 40%;
    right: 10px;
}

#button {
    background-color: #cf1a2c;
    border: none;
    width: 200px;
    position: relative;
    right: -50px;
  
}
#button:hover {
    background-color:#FBB20B;
    border-color: #e63900;
    transform: scale(1.1);
}

/* Scrolling container */
.carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    margin-bottom: 20px;
    padding: 1rem 0;
    scroll-behavior: smooth;
}

.carousel-container::-webkit-scrollbar {
    height: 8px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: #555;
    /* Scrollbar color */
    border-radius: 2px;
}

.carousel-container::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}

.movielist {
    margin-right: 100px;
    margin-left: 60px;
}


#movies {
    margin-left: 60px;
}

.sclmovie {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 250px;
    height: 350px;
}

.sclmovie img {
    width: 100%;
    height: 350px;
}

.card-body {
    padding: 0.5rem;
    text-align: center;
}


.movie-title-overlay {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 10px;
    transition: bottom 0.3s ease;
    border-radius: 0 0 5px 5px;
    font-size: 1rem;
}

.movie-title-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}


.sclmovie {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.sclmovie:hover {
    transform: scale(1.05);
    /* Slightly enlarge the card on hover */
}

.sclmovie:hover .movie-title-overlay {
    bottom: 0;
    /* Slide up the overlay to be fully visible */
}


/* Modal container */
#loginModal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
}

/* Modal content box */
.modal-content1 {
    background-color: #fff;
    color: #000;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Modal buttons */
.modal-content1 button {
    background-color: #BB2D3B;
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.modal-content1 button:hover {
    background-color: #ffc400e4;
}

.modal-buttons1 {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-buttons1 button {
    background-color: #BB2D3B;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.modal-buttons1 button:hover {
    background-color: #0056b3;
}

/* Cancel button styling */
#cancelModal {
    background-color: #5a6268;
}

#cancelModal:hover {
    background-color: #5a6268;
}



@media (max-width: 600px) {
    body {
        margin: 0;
        padding: 0;
    }

    .navbar-brand {
        font-size: 18px;
    }

    #profileBtn {
        position: relative;
        left: 290px;
        bottom: 48px;
    }

    .search-bar {
        position: relative;
        right: 10px;
        width: 75vw;
    }

    .navbar-collapse {
        height: 150px;
    }

    .carousel-caption h2 {
        font-size: 20px;
    }

    .carousel-caption p {
        font-size: 14px;
    }

    .card-title-name {
        font-size: small;
    }

    .card-title {
        font-size: 16px;
    }

    .card-text {
        font-size: 14px;
    }

    .search-bar {
        max-width: 200px;
    }

    .btn-primary {
        font-size: 14px;
    }

    .col-md-3 {
        width: 100px;
        flex: 0 0 25%;
        max-width: 25%;
        margin-bottom: 0px;

    }

    .col-md-3-image {
        flex-wrap: 0 0 33.3%;
        max-width: 33.3%;
        margin-bottom: -80px;
    }


    .card-title,
    .card-text {
        display: none;
        font-size: 0.9em;
    }

    .btn-primary {
   
        height: 25px;
        font-size: 7px;
        position: relative;
        transition: 0.3s;
        text-align: center;
        font-weight: 500;
        width: 65px;
        letter-spacing: 1px;
        padding: 0;
    }

    #button {
        background-color: #cf1a2c;
        border: none;
        position: relative;
        right: 5px;
        font-weight: 700;
        letter-spacing: 1px;
        padding: 0;
        padding-top: 7px;
    }

    .carousel-caption h2,
    .carousel-caption p {
        font-size: 6px;
    }


    .card:hover h5,
    .card:hover p {
        display: block;
        font-size: 6px;
    }

    .carousel-control-prev-icon {
        margin-left: -100px;
    }

    .text-center {
        font-size: 10px;
    }



    .btn-primary:hover {
        background-color: #e63900;
        border-color: #e63900;
        transform: scale(1.1);

    }


    .live {
        height: 200px;
        width: 100%;
        padding: 0 10px;
    }

    .embed-responsive-item {
        height: 200px;
        width: 100%;
        border: #f3f3f3 solid 1px;
    }

    .navbar-brand {
        font-size: 18px;
    }

    .profile-panel {
        width: 200px;
    }

    .carousel-item img {
        height: 250px;
    }

    .search-bar {
        max-width: 100%;
        margin-bottom: 10px;
    }

    main {
        margin-left: 0;
    }

    #actors {
        margin: 10px;
    }

    .actors {
        display: flex;
        flex-wrap: wrap;
        margin-left: 0;
    }

    .actorbox {
        height: 150px;
        width: 100px;
        margin: 12.5px;
        background-color: #343a40;
        border-radius: 5px 5px 3px 3px;
    }

    .actorbox img {
        height: 80%;
        width: 100%;
        padding: 5px;
        border-radius: 10px;
    }

    .actorbox h2 {
        font-size: 6px;
        position: relative;
        bottom: 2px;
        letter-spacing: 1px;
    }

    .actorbox button {
        position: relative;
        bottom: 12px;
        right: 50px;
        height: 20px;
        border-radius: 3px;
        text-align: center;
        width: 50px;
    }

    #movies {
        margin: 10px;

    }

    .movielist {
        margin: 15px;

    }

    .mname {
        position: relative;
        right: 5px;

    }

    .sclmovie {
        position: relative;
        right: 20px;
        margin-left: 20px;
        height: 170px;
        width: 100px;
        border: 1px solid white
    }

    .sclmovie img {
        height: 170px;
        width: 100px;
    }

    .navbar,
    .footer {
        font-size: 14px;
    }

    #loginModal {

        padding-top: 40%;
    }

    .modal-content1 {
        width: 95%;
        max-width: 300px;
        /* Adjust max width */
        padding: 15px;
        /* Reduce padding */
    }

    .modal-buttons1 button {
        padding: 8px 12px;
        /* Reduce button padding */
        font-size: 14px;
        /* Adjust font size */
    }

    .modal-content1 button {
        padding: 8px 12px;
        /* Consistent button padding */
        font-size: 14px;
        /* Adjust font size */
    }

}



@media (max-width: 600px) {




    .card {
        background-color: #343a40;
    }

    .card img {
        height: 110px;
    }


}